package com.cmsky.open.cms.enums;

import java.util.Set;

/**
 * 节点类型枚举
 * @author jandyfish
 *
 */
public enum CmsNodeType {
	Node(1),TextNode(2),
	TextHrefNode(3),PicNode(4),
	MvNode(5),RefNode(6),GoodsNode(7);
	private int value;
	
	public int getValue() {
		return value;
	}

	private CmsNodeType(int value) {
		this.value = value;
	}
	public static CmsNodeType getByValue(Integer val){
		CmsNodeType result = null;
		for(CmsNodeType e : CmsNodeType.values()){
			if(e.getValue() == val){
				result = e;
				break;
			}
		}
		return result;
	}
}
